{extend name='main'}

{block name="button"}
{/block}

{block name="content"}
<div class="think-box-shadow">
    <div class="layui-tab layui-tab-card think-bg-white">
        <div class="layui-tab-content">
            {include file='examine_repair/search'}
            <table id="BaseData" data-url="{:sysuri()}" data-target-search="form.form-search"></table>
        </div>
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th width="" class='text-center nowrap'>ID</th>
                <th width="" class='text-center nowrap'>用户昵称</th>
                <th width="" class='text-center nowrap'>手机号</th>
                <th width="" class='text-center nowrap'>报修类型</th>
                <th width="" class='text-center nowrap'>工程人员</th>
                <th width="" class='text-center nowrap'>报价</th>
                <th width="" class='text-center nowrap'>派单类型</th>
                <th width="" class='text-center nowrap'>是否当日完成</th>
                <th width="" class='text-center nowrap'>任务状态</th>
                <th width="" class='text-center nowrap'>报价说明</th>
                <th width="" class='text-center nowrap'>完成说明</th>
                <th width="" class='text-center nowrap'>未完成说明</th>
                <th width="" class='text-center nowrap'>审核时间</th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
                </td>
                <td class="text-center nowrap">{$vo.id|default=""}</td>
                <td class="text-center nowrap" style="font-weight: 600; color: #666666">{$vo.User.username|default=""}</td>
                <td class="text-center nowrap" style="font-weight: 600; color: #666666">{$vo.User.phone|default=""}</td>
                <td class="text-center nowrap">{$vo.Repair.type|getRepair}</td>
                <td class="text-center nowrap">{$vo.engineer|default=""}</td>
                <td class="text-center nowrap">{$vo.offer_price|default=""}</td>
                <td class="text-center nowrap">
                    {eq name='vo.type' value='0'}<span class="layui-badge layui-bg-green">自主抢单</span>{else}<span
                        class="layui-badge layui-bg-blue">后台派单</span>{/eq}
                </td>
                <td class="text-center nowrap">
                    {eq name='vo.is_complete' value='1'}<span class="layui-badge layui-bg-green">已完成</span>{else}<span
                        class="layui-badge layui-bg-blue">未完成</span>{/eq}
                </td>
                <td class="text-center nowrap">
                    {eq name='vo.status' value='1'}
                    <span class="layui-badge layui-bg-green">处理完成</span>
                    {/eq}
                    {eq name='vo.status' value='3'}
                    <span class="layui-badge layui-bg-blue">处理中</span>
                    {/eq}
                    {eq name='vo.status' value='2'}
                    <span class="layui-badge layui-bg-orange">待支付</span>
                    {/eq}
                    {eq name='vo.status' value='0'}
                    <span class="layui-badge layui-bg-red">待报价</span>
                    {/eq}
                </td>
                <td class="text-center nowrap">{$vo.offer_memo|default=""}</td>
                <td class="text-center nowrap">{$vo.complete_memo|default=""}</td>
                <td class="text-center nowrap">{$vo.un_complete_memo|default=""}</td>
                <td class="text-center nowrap">{$vo.create_time|date="Y-m-d H:i:s"}</td>
            </tr>
            {/foreach}
            </tbody>
        </table>
    </div>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>

{/block}